package com.qsmx.store.app.entity.login;

import java.util.List;

public class LoginEntity {

    /**
     * user : {"dataScopes":[19],"roles":["goodsale:list","combosale:list","card:list"],"user":{"createTime":"2021-09-17 11:45:37","dept":{"id":19,"name":"南京测试一店"},"email":"yiyi@163.com","enabled":true,"gender":"男","id":4,"jobs":[{"id":1,"name":"吧台服务员"}],"nickName":"一一","phone":"13112345678","roles":[{"dataScope":"本级","id":4,"level":5,"name":"门店吧台服务员"}],"shift":1,"updateBy":"admin","updateTime":"2021-09-23 16:07:10","userType":"0","username":"tao"},"userAuthors":[]}
     * token : Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJkNjhkM2M5YmM0YWU0ZjEwOWE5Y2M1OTQzNGQzNmVmNCIsInVzZXIiOiJ0YW8iLCJzdWIiOiJ0YW8ifQ.yqvxoyk7rn7_SmK852qNwUVaMMOuyJ8gYTOKD3Dj3xLY-YckKb-6YltVVc2g0Bb76uwyrNwxujQrngiInohXxg
     */

    private UserBeanX user;
    private String token;

    public UserBeanX getUser() {
        return user;
    }

    public void setUser(UserBeanX user) {
        this.user = user;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public static class UserBeanX {
        /**
         * dataScopes : [19]
         * roles : ["goodsale:list","combosale:list","card:list"]
         * user : {"createTime":"2021-09-17 11:45:37","dept":{"id":19,"name":"南京测试一店"},"email":"yiyi@163.com","enabled":true,"gender":"男","id":4,"jobs":[{"id":1,"name":"吧台服务员"}],"nickName":"一一","phone":"13112345678","roles":[{"dataScope":"本级","id":4,"level":5,"name":"门店吧台服务员"}],"shift":1,"updateBy":"admin","updateTime":"2021-09-23 16:07:10","userType":"0","username":"tao"}
         * userAuthors : []
         */

        private UserBean user;
        private List<Integer> dataScopes;
        private List<String> roles;
        private List<?> userAuthors;

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public List<Integer> getDataScopes() {
            return dataScopes;
        }

        public void setDataScopes(List<Integer> dataScopes) {
            this.dataScopes = dataScopes;
        }

        public List<String> getRoles() {
            return roles;
        }

        public void setRoles(List<String> roles) {
            this.roles = roles;
        }

        public List<?> getUserAuthors() {
            return userAuthors;
        }

        public void setUserAuthors(List<?> userAuthors) {
            this.userAuthors = userAuthors;
        }

        public static class UserBean {
            /**
             * createTime : 2021-09-17 11:45:37
             * dept : {"id":19,"name":"南京测试一店"}
             * email : yiyi@163.com
             * enabled : true
             * gender : 男
             * id : 4
             * jobs : [{"id":1,"name":"吧台服务员"}]
             * nickName : 一一
             * phone : 13112345678
             * roles : [{"dataScope":"本级","id":4,"level":5,"name":"门店吧台服务员"}]
             * shift : 1
             * updateBy : admin
             * updateTime : 2021-09-23 16:07:10
             * userType : 0
             * username : tao
             */

            private String createTime;
            private DeptBean dept;
            private String email;
            private boolean enabled;
            private String gender;
            private int id;
            private String nickName;
            private String phone;
            private int shift;
            private String updateBy;
            private String updateTime;
            private String userType;
            private String username;
            private List<JobsBean> jobs;
            private List<RolesBean> roles;

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public DeptBean getDept() {
                return dept;
            }

            public void setDept(DeptBean dept) {
                this.dept = dept;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }

            public boolean isEnabled() {
                return enabled;
            }

            public void setEnabled(boolean enabled) {
                this.enabled = enabled;
            }

            public String getGender() {
                return gender;
            }

            public void setGender(String gender) {
                this.gender = gender;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getNickName() {
                return nickName;
            }

            public void setNickName(String nickName) {
                this.nickName = nickName;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public int getShift() {
                return shift;
            }

            public void setShift(int shift) {
                this.shift = shift;
            }

            public String getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(String updateBy) {
                this.updateBy = updateBy;
            }

            public String getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(String updateTime) {
                this.updateTime = updateTime;
            }

            public String getUserType() {
                return userType;
            }

            public void setUserType(String userType) {
                this.userType = userType;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public List<JobsBean> getJobs() {
                return jobs;
            }

            public void setJobs(List<JobsBean> jobs) {
                this.jobs = jobs;
            }

            public List<RolesBean> getRoles() {
                return roles;
            }

            public void setRoles(List<RolesBean> roles) {
                this.roles = roles;
            }

            public static class DeptBean {
                /**
                 * id : 19
                 * name : 南京测试一店
                 */

                private int id;
                private String name;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }

            public static class JobsBean {
                /**
                 * id : 1
                 * name : 吧台服务员
                 */

                private int id;
                private String name;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }

            public static class RolesBean {
                /**
                 * dataScope : 本级
                 * id : 4
                 * level : 5
                 * name : 门店吧台服务员
                 */

                private String dataScope;
                private int id;
                private int level;
                private String name;

                public String getDataScope() {
                    return dataScope;
                }

                public void setDataScope(String dataScope) {
                    this.dataScope = dataScope;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getLevel() {
                    return level;
                }

                public void setLevel(int level) {
                    this.level = level;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }
        }
    }
}
